<?php
declare(strict_types=1);

namespace Jxzsxsp\WechatRobot\Text;

use Jxzsxsp\WechatRobot\Message;

class TextMessage extends Message
{
    const MSG_TYPE = 'text';
    public $content = '';
    public $mentioned_list = [];
    public $mentioned_mobile_list = [];

    protected function getMessage(): array
    {
        return [
            'msgtype' => self::MSG_TYPE,
            self::MSG_TYPE => [
                'content' => $this->content,
                'mentioned_list' => $this->mentioned_list,
                'mentioned_mobile_list' => $this->mentioned_mobile_list,
            ]
        ];
    }

}